package cn.jxau.service;

import java.util.List;

import com.baomidou.mybatisplus.plugins.Page;

import cn.jxau.bean.po.Article;
import cn.jxau.bean.po.ArticleType;
import cn.jxau.bean.po.User;
import cn.jxau.bean.po.UserCollectionsType;

public interface UserCollectionsService extends CommonService{

	List<UserCollectionsType> getUserArticleType(Long userID);

	List<Article> getCollectionByUserID(Page<Article> page, Long id);

	Long insertType(UserCollectionsType type);

	int deleteTypeParentById(Long id, boolean isParent,Long UserID);
	
	int deleteTypeSonById(Long id);

	int updateTypeNameById(UserCollectionsType userCollectionsType);

	int deleteCollectionByID(Long articleID,Long userID);

	List<Article> getUserArticleByTypeID(Page<Article> page, Long usertypeID,Long userID);

	List<Article> getUserArticleByParentID(Page<Article> page, Long pid, Long userID);

	int insertCollectionByID(Long articleID, Long usertypeID, Long userID);
}
